package com.basic.business.model.dto;

import com.basic.business.common.config.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;


/**
 * 系统菜单表(SysMenu)实体类
 *
 * @author huage
 * @since 2021-07-20 14:33:46
 */
@ApiModel("SysMenuDto")
@Data
public class SysMenuDto implements Serializable {

    private static final long serialVersionUID = -23334017726105860L;

    @ApiModelProperty(value = "$column.comment")
    @NotNull(groups = {ValidationGroups.Update.class, ValidationGroups.Delete.class})
    @Min(value = 1, groups = {ValidationGroups.Update.class, ValidationGroups.Delete.class})
    private Integer id;

    @ApiModelProperty(value = "菜单id")
    private String menuId;

    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    @ApiModelProperty(value = "父类id。为null为最高级")
    private String menuParentId;

    @ApiModelProperty(value = "菜单路径")
    private String menuPath;

    @ApiModelProperty(value = "菜单顺序, 越小越优先")
    private Integer menuLevel;

    @ApiModelProperty(value = "1启用，0不启用")
    private Object isEnable;

    @ApiModelProperty(value = "机构id")
    private String orgId;

}
